import request from '@/utils/request'

// 查询运输类型列表
export function listShiptype(query) {
  return request({
    url: '/ofld/shiptype/list',
    method: 'get',
    params: query
  })
}

// 查询运输类型详细
export function getShiptype(id) {
  return request({
    url: '/ofld/shiptype/' + id,
    method: 'get'
  })
}

// 新增运输类型
export function addShiptype(data) {
  return request({
    url: '/ofld/shiptype',
    method: 'post',
    data: data
  })
}

// 修改运输类型
export function updateShiptype(data) {
  return request({
    url: '/ofld/shiptype',
    method: 'put',
    data: data
  })
}

// 删除运输类型
export function delShiptype(id) {
  return request({
    url: '/ofld/shiptype/' + id,
    method: 'delete'
  })
}
